@extends('user.base.index')

@section('content')
<div class="block-area" id="text-input">
<h3 class="block-title">书目详细信息</h3>
    <a href="{{url('admin/product')}}">返回</a>
 <form class="row form-columned" action="/admin/details/insert" role="form" enctype='multipart/form-data' method="post">
   
        <input type="hidden" name="_token" value="{{ csrf_token()}}">
        <div class="col-md-4">
           作者：<input type="text" name="author"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           出版社：<input type="text" name="publishing"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           出版时间<input type="text" name="publishing"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           ISBN：<input type="text" name="isbn"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           语种：<input type="text" name="language"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           版次：<input type="text" name="which_edtion"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           页数：<input type="text" name="total_page"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           装帧：<input type="text" name="bind_layout"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           开本：<input type="text" name="book_size"class="form-control input-sm m-b-10" >
        </div>
                <div class="col-md-4">
            印刷数量：<input type="text" name="print_number" class="form-control input-sm m-b-10" >
        </div>
        
        
        <div class="col-md-4">
           纸张类型：<input type="text" name="paper_type"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           印次：<input type="text" name="print_frequency"class="form-control input-sm m-b-10">
        </div>
        <div class="col-md-4">
           库存：<input type="text" name="gross"class="form-control input-sm m-b-10" >
        </div>
        <div class="col-md-4">
           product_id：<input type="text" name="product_id"class="form-control input-sm m-b-10" value="{{$id}}">
        </div>
        <div class="col-md-12">
            目录：<textarea class="form-control m-b-10" name="catalog" rows="10" ></textarea>
        </div>
        <div class="col-md-12">
            作者简介：<textarea class="form-control m-b-10" name="author_summary" rows="10" ></textarea>
        </div>

        <div class="col-md-12">
            内容简介：<textarea class="form-control m-b-10" name="book_summary" rows="10" ></textarea>
        </div>

        <div class="col-md-12">
            编辑推荐描述：<textarea class="form-control m-b-10" name="editor_description" rows="10" ></textarea>
        </div>


        
        <div class="col-md-10">
            <button type="submit" class="btn btn-sm">添加</button>
        </div>
        
    </form>
    @if (count($errors) > 0)
        <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <p>{{ $error }}</p>
            @endforeach
        </ul>
    </div>
@endif
</div>
@stop

